package com.sptan.framework.exception;



/**
 * @author lp.
 * @description 业务异常
 **/
public class BusinessException extends BadRequestException {
    private static final long serialVersionUID = 5586157044001499965L;

    private Integer code;

    public BusinessException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message) {
        super(message);
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public void setCode(Integer code) {
        this.code = code;
    }
}
